import {FL} from '@/store/mkh/fljk/mutation-types'
import {sylist} from '@/api/syjk'
export default{
    namespaced:true,
    state:{
         dx:[]
    },
    mutations:{
     [FL](state,val){
     state.dx=val
     }
    },
     actions:{
        qqflsj({commit}){                 //解构赋值 commit 是它mutations
            sylist().then((res)=>{     //可以解构赋值{data,code}解构请求成功的res里面的值
                commit('FL',res.data)
                console.log(res)
              }).catch(a=>{
                console.log(a)
              })
        }
     }
}